﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dal;
using Model;

namespace Bll
{
   public class Truckbll
    {
        public static List<Tuck> GetTuckone()
        {
            return Dal.Tuckdal.GetTuckone();
        }
        public static bool DelectOne(string TruckID)
        {
            return Dal.Tuckdal.DelectOne(TruckID) == 1 ? true : false;

        }
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="TruckID"></param>
        /// <returns></returns>
        public static Model.Tuck Ectonte(string TruckID)
        {
            return Dal.Tuckdal.Ectonte(TruckID);
        }
        public static int Ecttwo(Tuck tt)
        {
            return Dal.Tuckdal.Ecttwo(tt);
        }
    }
}
